


$(".movie-list-container").click(function (event) {
    var ele = event.target;
    if (ele.nodeName =="IMG"){
        var eleArr = ele.parentElement.parentElement.children
        for (var i = 0;i< eleArr.length;i++){
            eleArr[i].classList.remove("active")
        }
        ele.parentElement.classList.add("active");

    }else if(ele.className == "scroll-prev scroll-btn"){
        $(".movie-list").style.left = $(".movie-list").offsetLeft-500 + "px";

    }else if(ele.className == "scroll-next scroll-btn"){
        $(".movie-list").style.left = $(".movie-list").offsetLeft+500 + "px";
    }
})